
import store from './store'
import router from './router'

router.beforeEach(async (to, from, next) => {
  if (!store.getters.appInfo.uuid) {
    await store.dispatch('system/getDeviceInfo').catch(() => { })
  }
  next()
})
